<div class="navbar">
   <div class="navbar-inner">
       <ul class="nav pull-right">
          <li><a href="<?php echo $base_url;?>gass_message/message_list/<?php echo $this->flexi_auth->get_user_id();?>" class="hidden-phone visible-tablet visible-desktop" role="button"><i class="icon-envelope"></i> 站内信</a></li>
          <li id="fat-menu" class="dropdown">
          <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
          <i class="icon-user"></i>
      <?php 
  	   $userInfo = $this->flexi_auth->get_user_by_id()->row_array();
  	   echo $userInfo['upro_first_name'].' '.$userInfo['upro_last_name'].'&nbsp';
  	   switch($userInfo['ugrp_id'])
  	   {
  	   	case '1':
  	   	 echo '同学';
  	   	 break;
  	   	default:
  	   	 echo '老师';
  	   	 break;
  	   } 
  	  ?>
            <i class="icon-caret-down"></i>
          </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="<?php echo $base_url;?>gass_users/update_user_account/<?php echo $this->flexi_auth->get_user_id();?>">我的账户</a></li>
                            <li class="divider"></li>
                            <!--<li><a tabindex="-1"  href="#">Settings</a></li>
                            <li class="divider visible-phone"></li>-->
                            <li><a tabindex="-1" href="<?php echo $base_url;?>gass_auth/logout">退出</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="index.html"><span class="first">重庆大学</span> <span class="second">硕士研究生服务系统</span></a>
        </div>
    </div>
